package com.zy.cat.entity.pdd;

import java.io.Serializable;

import com.pdd.pop.sdk.http.api.pop.response.PddDdkGoodsPromotionUrlGenerateResponse.GoodsPromotionUrlGenerateResponseGoodsPromotionUrlListItem;
import com.pdd.pop.sdk.http.api.pop.response.PddDdkGoodsPromotionUrlGenerateResponse.GoodsPromotionUrlGenerateResponseGoodsPromotionUrlListItemWeAppInfo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 
 * @info 拼多多商品高佣转链
 * @author Link
 * @date 2019-09-05 11:27
 */
@Data
@ApiModel("拼多多商品高佣转链实体类")
public class PddShopConvert implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "唤起微信app推广短链接", example = "0")
	private String we_app_web_view_short_url;
	@ApiModelProperty(value = "唤起微信app推广链接", example = "0")
	private String we_app_web_view_url;
	@ApiModelProperty(value = "唤醒拼多多app的推广短链接", example = "0")
	private String mobile_short_url;
	@ApiModelProperty(value = "唤醒拼多多app的推广长链接", example = "0")
	private String mobile_url;
	@ApiModelProperty(value = "推广短链接", example = "0")
	private String short_url;
	@ApiModelProperty(value = "推广长链接", example = "0")
	private String url;
	@ApiModelProperty(value = "小程序信息", example = "0")
	private We_app_info we_app_info;
	@ApiModelProperty(value = "微博推广短链接", example = "0")
	private String weibo_app_web_view_short_url;
	@ApiModelProperty(value = "微博推广链接", example = "0")
	private String weibo_app_web_view_url;
	
	

	public PddShopConvert( GoodsPromotionUrlGenerateResponseGoodsPromotionUrlListItem convert) {
		super();
		this.we_app_web_view_short_url =convert.getWeAppWebViewShortUrl();
		this.we_app_web_view_url =convert.getWeAppWebViewUrl();
		this.mobile_short_url =convert.getMobileShortUrl();
		this.mobile_url =convert.getMobileUrl();
		this.short_url =convert.getShortUrl();
		this.url =convert.getUrl();
		if(convert.getWeAppInfo()!=null) {
			this.we_app_info =new We_app_info(convert.getWeAppInfo());
		}
		this.weibo_app_web_view_short_url = convert.getWeiboAppWebViewShortUrl();
		this.weibo_app_web_view_url = convert.getWeiboAppWebViewUrl();
	}

	@Data
	public static class We_app_info {
		@ApiModelProperty(value = "小程序图片", example = "0")
		private String we_app_icon_url;
		@ApiModelProperty(value = "描述", example = "0")
		private String desc;
		@ApiModelProperty(value = "来源名", example = "0")
		private String source_display_name;
		@ApiModelProperty(value = "小程序path值", example = "0")
		private String page_path;
		@ApiModelProperty(value = "用户名", example = "0")
		private String user_name;
		@ApiModelProperty(value = "小程序标题", example = "0")
		private String title;
		@ApiModelProperty(value = "拼多多小程序id", example = "0")
		private String app_id;
		public We_app_info(GoodsPromotionUrlGenerateResponseGoodsPromotionUrlListItemWeAppInfo we) {
			super();
			this.we_app_icon_url = we.getWeAppIconUrl();
			this.desc = we.getDesc();
			this.source_display_name = we.getSourceDisplayName();
			this.page_path = we.getPagePath();
			this.user_name = we.getUserName();
			this.title = we.getTitle();
			this.app_id = we.getAppId();
		}
	}
}
